package com.mc.read.dao.mapper;

import com.mc.read.dao.models.Chatrecord;
import com.mc.read.dao.models.ChatrecordExample;
import com.mc.read.dao.vo.Message;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ChatrecordMapper {
    int countByExample(ChatrecordExample example);

    int deleteByExample(ChatrecordExample example);

    int deleteByPrimaryKey(Integer recordid);

    int insert(Chatrecord record);

    int insertSelective(Chatrecord record);

    List<Chatrecord> selectByExample(ChatrecordExample example);

    Chatrecord selectByPrimaryKey(Integer recordid);

    int updateByExampleSelective(@Param("record") Chatrecord record, @Param("example") ChatrecordExample example);

    int updateByExample(@Param("record") Chatrecord record, @Param("example") ChatrecordExample example);

    int updateByPrimaryKeySelective(Chatrecord record);

    int updateByPrimaryKey(Chatrecord record);


    List<Message> selectTop100(Integer bookid);
}